package com.ym.system.service.impl;

import com.ym.system.dao.entity.SysUser;
import com.ym.system.dao.entity.SysUserExample;
import com.ym.system.dao.mapper.SysUserMapper;
import com.ym.system.feign.DemoSv;
import com.ym.system.service.SysUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description
 * @author: 梁官强
 * @version: v1.0
 * @create: 2021-02-18 09:17
 **/
@Service
public class SysUserServiceImpl implements SysUserService {

    @Autowired
    private DemoSv demoSv;

    @Autowired
    private SysUserMapper sysUserMapper;

    @Override
    public String list() {

        SysUserExample example = new SysUserExample();
        List<SysUser> sysUsers = sysUserMapper.selectByExample(example);

        return sysUsers.toString();
    }
}
